<template>
    <el-button type="primary" @click="clickHandler">{{ props.isDisplay ? '隐藏' : '展示' }}</el-button>
    </template>
    
    <script setup>
    const props = defineProps({
        isDisplay: {
            type: Boolean
        },
        isDisplayFunc: {
            type: Function
        }
    })

    const clickHandler = ()=>{
        let display = props.isDisplay ? false : true
        props.isDisplayFunc(display)
    }
    </script>